package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type Analytics struct {
	ID        int       `json:"id"`
	Action    int32     `json:"action"` //	1老用户登录,2新用户
	Desc      string    `json:"desc"`   //	来源描述文字说明
	AnchorID  int       `json:"anchor_id"`
	LiveID    int64     `json:"live_id"`
	User      string    `json:"user"`
	CreatedAt time.Time `json:"created_at"`
}

func (Analytics) TableName() string {
	return fmt.Sprintf("%sanalytics", models.Prefix)
}
